package Modle;

import java.util.Random;

/**
 * Created by Administrator on 2016/2/17.
 */
public class ParkItemBean {
    private long id;
    private String name;
    private String address;
    private double price;
    private double Longitude;
    private double Latitude;
    private String price_desc;
    private String remark;
    private int open;
    private long count;
    private int isReserve;
    private long car_park_spare_num;
    private long car_park_sum_num;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getLongitude() {
        return Longitude;
    }

    public void setLongitude(double longitude) {
        Longitude = longitude;
    }

    public double getLatitude() {
        return Latitude;
    }

    public void setLatitude(double latitude) {
        Latitude = latitude;
    }

    public String getPrice_desc() {
        return price_desc;
    }

    public void setPrice_desc(String price_desc) {
        this.price_desc = price_desc;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getOpen() {
        return open;
    }

    public void setOpen(int open) {
        this.open = open;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public int getIsReserve() {
        return isReserve;
    }

    public void setIsReserve(int isReserve) {
        this.isReserve = isReserve;
    }

    public long getCar_park_spare_num() {
        if (car_park_spare_num == 0) {
            Random random = new Random();
            car_park_spare_num = random.nextInt(101);
        }
        return car_park_spare_num;
    }

    public void setCar_park_spare_num(long car_park_spare_num) {
        this.car_park_spare_num = car_park_spare_num;
    }

    public long getCar_park_sum_num() {
        return car_park_sum_num;
    }

    public void setCar_park_sum_num(long car_park_sum_num) {
        this.car_park_sum_num = car_park_sum_num;
    }
}
